import request from '@/utils/request'

// 获取考核申诉列表
export function getBizassessappealList(data) {
  return request({
    url: '/office/bizassessappeal/list',
    method: 'post',
    data
  })
}

// 获取考核申诉详情
export function getBizassessappealAppealinfo(id) {
  return request({
    url: `/office/bizassessappeal/appealinfo/${id}`,
    method: 'post'
  })
}

// 新增考核申诉
export function saveBizassessappealInfo(data) {
  return request({
    url: '/office/bizassessappeal/saveInfo',
    method: 'post',
    data
  })
}

// 编辑考核申诉
export function editBizassessappealInfo(data) {
  return request({
    url: '/office/bizassessappeal/editInfo',
    method: 'post',
    data
  })
}

// 根据年月获取考核指标结果
export function getAssessIndicatorsByAssessTime(data) {
  return request({
    url: '/office/bizOfficeAssess/getAssessIndicatorsByAssessTime',
    method: 'post',
    data
  })
}

// 获取考核申诉详情
export function delBizassessappealDelete(params) {
  return request({
    url: '/office/bizassessappeal/delete',
    method: 'delete',
    params
  })
}
